package com.example.binder;

import com.example.binder.bean.UserInfoBean;

public class XunYouSingleton {
    private final static class XunYouSingletonHolder {
        private static XunYouSingleton singleton = new XunYouSingleton();
    }

    public static XunYouSingleton newInstance() {
        return XunYouSingletonHolder.singleton;
    }

    private UserInfoBean userInfo;

    private XunYouSingleton() {
        // 私有构造器，防止外部直接实例化
    }

    public UserInfoBean getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfoBean userInfo) {
        this.userInfo = userInfo;
    }
}
